package core.exception;

import core.enums.ResultCode;
import lombok.Getter;

@Getter
public class ServiceException extends RuntimeException {

    private ResultCode resultCode;
    public ServiceException(String message) {
        super(message);
        this.resultCode = ResultCode.FAILED;
    }
    public ServiceException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
